package model

import "gorm.io/gorm"

// 用户

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(32)"`
}

// 小说

type Novel struct {
	gorm.Model
	Title  string `gorm:"type:varchar(30)"`
	Author string `gorm:"type:varchar(30)"`
	Desc   string `gorm:"type:varchar(30)"`
}
